PARSER=parser
DUG=debug
HTTPSVR=http_server
cc=g++

.PHONY:all
all: $(PARSER) $(DUG) $(HTTPSVR)

$(PARSER):parser.cc
	$(cc) -o $@ $^ -lboost_system -lboost_filesystem  -std=c++11
$(DUG):debug.cc
	$(cc) -o $@ $^ -ljsoncpp -lboost_system  -std=c++11
$(HTTPSVR):http_server.cc
	$(cc) -o $@ $^  -ljsoncpp -lpthread -lboost_system -std=c++11

.PHONY:
clean:
	rm -f $(PARSER)
	rm -f $(DUG)
	rm -f $(HTTPSVR)
